Safari Reference Library Apple Developer
Search

Introduction to JavaScript Scripting Guide for QuickTime

JavaScript can interact with QuickTime in various ways. You can use JavaScript in a browser to detect whether QuickTime is installed, you can use JavaScript to create the tags used to embed QuickTime content in a web page, and you can use JavaScript to query and control the QuickTime plug-in directly.

This document describes client-side scripting using JavaScript and QuickTime browser plug-ins.

All QuickTime browser plug-ins expose the exact same interfaces to JavaScript, whether the plug-in is an ActiveX control, a Cocoa plug-in, or a Netscape-style plug-in, allowing the same script to operate identically for Internet Explorer, Safari, FireFox, Mozilla, and other browsers that support plug-in scripting.

Browsers that support the W3C’s DOM Level 3 specification can receive DOM events from QuickTime, allowing movie events to trigger JavaScript functions without having to set timers or poll QuickTime for status events.

Important: Starting with QuickTime 7.1.5, you can no longer issue javascript:// URLs or call JavaScript functions directly from within a QuickTime movie. This feature was removed from QuickTime for security reasons. This document includes techniques for working around this change.

Who Should Read This Document

If you create QuickTime movies that are embedded in web pages, or if you create web pages that include QuickTime movies, you should read this document.

Organization of This Document

This document provides a detailed description of the different ways to use JavaScript for client-side scripting of QuickTime browser plug-ins:

See Also

If you want to do Windows application development or server-side scripting using the QuickTime ActiveX control and JavaScript, Visual Basic, or C#, see QuickTime 7 for Windows Update Guide.

For information on how to embed QuickTime content in a web page, or how to control the QuickTime browser plug-in using HTML tags and attributes, see HTML Scripting Guide for QuickTime.

For information on how to control QuickTime and the QuickTime browser plug-in using SMIL, see SMIL Scripting Guide for QuickTime.




Last updated: 2008-02-08

Did this document help you? Yes It's good, but... Not helpful...